// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init({
  env: "zmyy-6uke0"
})

// 云函数入口函数
const db = cloud.database()
exports.main = async (event, context) => {
  let { fz_input_id, arrived, zzwhere, fhtwvalue, zzmemo} = event
  return await db.collection('info_zmyy').doc(fz_input_id).update({
    data: {
      arrived: arrived,
      zzwhere: zzwhere,
      fhtwvalue: fhtwvalue,
      zzmemo: zzmemo
    }
  })

}


